package com.company.cloud.user.modules.bus.consumer;

import com.company.cloud.common.constant.ConfigConstants;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.print.attribute.standard.Destination;

@ConditionalOnProperty(value = ConfigConstants.CONFIG_Active_MQ_ENABLED, havingValue = "true")
@Service
public class QueueConsumerListener1 {





//    @JmsListener(destination="queue1",containerFactory = "queueListener" )
//    public  void read1(String message){
//        System.out.println("+++++ QueueConsumerListener--1:"+message);
//    }
//
//    @JmsListener(destination="queue1",containerFactory = "queueListener" )
//    public  void read2(String message){
//        System.out.println("+++++ QueueConsumerListener--2:"+message);
//    }

    @JmsListener(destination="queue1",containerFactory = "queueListener" )
    public  void read3(String message){
        System.out.println("+++++ QueueConsumerListener--3:"+message);
    }






}
